/**
 * Created by xukj on 2018/6/4.
 */

import React from 'react';
import {
  FlatList,
  StyleSheet,
  Dimensions,
} from 'react-native';

const CustomFlatList01 = ({data, style = styles.list, renderItem}) => (
  <FlatList
    data={data}
    style={style}
    renderItem={renderItem}
  />
);

const {width} = Dimensions.get('window');
const styles = StyleSheet.create({
  list: {
    width: width,
  },
});

export default CustomFlatList01;